------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\agnolin\OneDrive - Università Commerciale Luigi Bocconi\CPS paper\Text-Tables\Paper\Submissions\CPS\Final_Resu
> bmission\Replication_Folder\replication_mutz_logfile.log
  log type:  text
 opened on:   4 Jun 2024, 16:29:46

. 
. * Import data from Mutz (2018). This data is contained in the replication package by Mutz(2018) and is labeled as "Amerispeak2016O
> ctForReplication.dta".
. 
. * It can be downloaded from https://www.asc.upenn.edu/research/centers/institute-for-the-study-of-citizens-and-politics/publicatio
> ns/supplemental-materials
. 
. * Here, we rename it as replication_mutz_2018 and include only the variables that are need from the analysis
. 
. 
. 
. * Let's import the data
. 
. use  "./replication_mutz_2018.dta", replace

. 
. * Data preparation like in Mutz (2018)
.                 
. egen cutdifftherm= cut(thermdiffTC), group(20)
(292 missing values generated)

. 
. * First define the regression sample from regression with longer equation
. 
. regress cutdifftherm party3 noncollegegrad  white GENDER i.AGE7 religion INCOME lookwork  perecoperc  medianincome  ecoperc immigi
> n, robust  

Linear regression                               Number of obs     =      2,888
                                                F(17, 2870)       =     428.60
                                                Prob > F          =     0.0000
                                                R-squared         =     0.6417
                                                Root MSE          =      3.464

--------------------------------------------------------------------------------
               |               Robust
  cutdifftherm | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
        party3 |  -2.672662   .0994822   -26.87   0.000    -2.867725   -2.477598
noncollegegrad |   .4702705   .1412004     3.33   0.001      .193406     .747135
         white |   1.063849   .1620742     6.56   0.000     .7460556    1.381643
        GENDER |  -.7411642    .133879    -5.54   0.000    -1.003673   -.4786556
               |
          AGE7 |
        25-34  |  -.5221835   .3015014    -1.73   0.083    -1.113365    .0689977
        35-44  |  -1.175956   .3239688    -3.63   0.000    -1.811192   -.5407212
        45-54  |  -1.688629   .3228398    -5.23   0.000     -2.32165   -1.055608
        55-64  |  -1.511663   .3053714    -4.95   0.000    -2.110433   -.9128937
        65-74  |    -1.7698   .3267209    -5.42   0.000    -2.410432   -1.129169
          75+  |   -1.53366   .3690466    -4.16   0.000    -2.257284   -.8100372
               |
      religion |   .0468645   .0253641     1.85   0.065    -.0028692    .0965982
        INCOME |   .0492614   .0181905     2.71   0.007     .0135935    .0849292
      lookwork |  -.0902475   .2991339    -0.30   0.763    -.6767865    .4962915
    perecoperc |  -.1138836   .0747633    -1.52   0.128    -.2604788    .0327116
  medianincome |  -9.29e-07   3.15e-06    -0.30   0.768    -7.10e-06    5.24e-06
       ecoperc |  -1.145899   .0796634   -14.38   0.000    -1.302102   -.9896957
    immigindex |   -1.30599   .0792106   -16.49   0.000    -1.461305   -1.150674
         _cons |   24.28378   .5286183    45.94   0.000     23.24727    25.32029
--------------------------------------------------------------------------------

. 
. cap drop in_broken

. 
. gen in_broken=e(sample)

. 
. *** Main specification: pocketbook evaluation as in column 5 of Table 1 and column 1 of Table B.1, keeping the sample constant
. 
. regress cutdifftherm party3 noncollegegrad  white GENDER i.AGE7 religion INCOME lookwork  perecoperc  medianincome  ecoperc if in_
> broken, robust  

Linear regression                               Number of obs     =      2,888
                                                F(16, 2871)       =     361.49
                                                Prob > F          =     0.0000
                                                R-squared         =     0.5979
                                                Root MSE          =     3.6692

--------------------------------------------------------------------------------
               |               Robust
  cutdifftherm | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
        party3 |  -3.324252   .0936548   -35.49   0.000    -3.507889   -3.140614
noncollegegrad |   .8160039   .1515407     5.38   0.000     .5188643    1.113143
         white |   1.077034   .1709444     6.30   0.000     .7418476     1.41222
        GENDER |  -.9289101    .139831    -6.64   0.000    -1.203089   -.6547309
               |
          AGE7 |
        25-34  |  -.2572836   .3249021    -0.79   0.428    -.8943486    .3797815
        35-44  |  -.7386158    .340024    -2.17   0.030    -1.405332   -.0718999
        45-54  |  -1.041824   .3426972    -3.04   0.002    -1.713782   -.3698669
        55-64  |  -1.100041    .329323    -3.34   0.001    -1.745775   -.4543076
        65-74  |  -1.410545   .3516955    -4.01   0.000    -2.100146   -.7209435
          75+  |  -1.116696   .3988414    -2.80   0.005     -1.89874   -.3346515
               |
      religion |   .0502641   .0268243     1.87   0.061    -.0023327    .1028608
        INCOME |   .0427331   .0195052     2.19   0.029     .0044874    .0809787
      lookwork |  -.0341846   .3153886    -0.11   0.914    -.6525956    .5842263
    perecoperc |  -.2044711   .0783941    -2.61   0.009    -.3581856   -.0507567
  medianincome |  -1.97e-06   3.38e-06    -0.58   0.560    -8.60e-06    4.66e-06
       ecoperc |  -1.492896   .0814365   -18.33   0.000    -1.652576   -1.333216
         _cons |   22.75967   .5620262    40.50   0.000     21.65765    23.86168
--------------------------------------------------------------------------------

. 
. 
. *** Regression controlling for immigration stances, as in column 6 of Table 1 and column 2 of Table B.1
. 
. regress cutdifftherm party3 noncollegegrad  white GENDER i.AGE7 religion INCOME lookwork  perecoperc  medianincome  ecoperc immigi
> n, robust  

Linear regression                               Number of obs     =      2,888
                                                F(17, 2870)       =     428.60
                                                Prob > F          =     0.0000
                                                R-squared         =     0.6417
                                                Root MSE          =      3.464

--------------------------------------------------------------------------------
               |               Robust
  cutdifftherm | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
        party3 |  -2.672662   .0994822   -26.87   0.000    -2.867725   -2.477598
noncollegegrad |   .4702705   .1412004     3.33   0.001      .193406     .747135
         white |   1.063849   .1620742     6.56   0.000     .7460556    1.381643
        GENDER |  -.7411642    .133879    -5.54   0.000    -1.003673   -.4786556
               |
          AGE7 |
        25-34  |  -.5221835   .3015014    -1.73   0.083    -1.113365    .0689977
        35-44  |  -1.175956   .3239688    -3.63   0.000    -1.811192   -.5407212
        45-54  |  -1.688629   .3228398    -5.23   0.000     -2.32165   -1.055608
        55-64  |  -1.511663   .3053714    -4.95   0.000    -2.110433   -.9128937
        65-74  |    -1.7698   .3267209    -5.42   0.000    -2.410432   -1.129169
          75+  |   -1.53366   .3690466    -4.16   0.000    -2.257284   -.8100372
               |
      religion |   .0468645   .0253641     1.85   0.065    -.0028692    .0965982
        INCOME |   .0492614   .0181905     2.71   0.007     .0135935    .0849292
      lookwork |  -.0902475   .2991339    -0.30   0.763    -.6767865    .4962915
    perecoperc |  -.1138836   .0747633    -1.52   0.128    -.2604788    .0327116
  medianincome |  -9.29e-07   3.15e-06    -0.30   0.768    -7.10e-06    5.24e-06
       ecoperc |  -1.145899   .0796634   -14.38   0.000    -1.302102   -.9896957
    immigindex |   -1.30599   .0792106   -16.49   0.000    -1.461305   -1.150674
         _cons |   24.28378   .5286183    45.94   0.000     23.24727    25.32029
--------------------------------------------------------------------------------

. 
. 
. *** Regression of immigration stances on pocketbook evaluation, as in column 4 of Table 2 and column 3 of Table B.1
. 
. regress immigin party3 noncollegegrad  white GENDER i.AGE7 religion INCOME lookwork  perecoperc  medianincome  ecoperc if in_broke
> n, robust  

Linear regression                               Number of obs     =      2,888
                                                F(16, 2871)       =     138.77
                                                Prob > F          =     0.0000
                                                R-squared         =     0.3923
                                                Root MSE          =     .92779

--------------------------------------------------------------------------------
               |               Robust
    immigindex | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
        party3 |   .4989243   .0227749    21.91   0.000     .4542675    .5435811
noncollegegrad |   -.264729   .0391929    -6.75   0.000    -.3415781   -.1878799
         white |  -.0100955   .0420571    -0.24   0.810    -.0925607    .0723696
        GENDER |   .1437576   .0353877     4.06   0.000     .0743697    .2131454
               |
          AGE7 |
        25-34  |  -.2028346   .0743442    -2.73   0.006    -.3486081   -.0570611
        35-44  |  -.3348728   .0782744    -4.28   0.000    -.4883525   -.1813931
        45-54  |  -.4952601   .0796443    -6.22   0.000    -.6514259   -.3390942
        55-64  |  -.3151801   .0766991    -4.11   0.000     -.465571   -.1647893
        65-74  |  -.2750831   .0826565    -3.33   0.001    -.4371552    -.113011
          75+  |  -.3192708   .0959001    -3.33   0.001    -.5073107   -.1312308
               |
      religion |  -.0026031   .0066468    -0.39   0.695    -.0156361      .01043
        INCOME |   .0049987   .0049744     1.00   0.315    -.0047551    .0147525
      lookwork |  -.0429275   .0712714    -0.60   0.547    -.1826758    .0968208
    perecoperc |   .0693631   .0204203     3.40   0.001     .0293232    .1094031
  medianincome |   7.99e-07   8.62e-07     0.93   0.354    -8.92e-07    2.49e-06
       ecoperc |   .2656965   .0203375    13.06   0.000     .2258189    .3055741
         _cons |   1.167017   .1364772     8.55   0.000     .8994143    1.434621
--------------------------------------------------------------------------------

. 
. 
. 
. * close log file
. 
. log close
      name:  <unnamed>
       log:  C:\Users\agnolin\OneDrive - Università Commerciale Luigi Bocconi\CPS paper\Text-Tables\Paper\Submissions\CPS\Final_Resu
> bmission\Replication_Folder\replication_mutz_logfile.log
  log type:  text
 closed on:   4 Jun 2024, 16:29:47
------------------------------------------------------------------------------------------------------------------------------------
